﻿@model P2PWeb.Models.Account
@{
    ViewBag.Title = "Index";
}
@using P2PWeb.Controllers;
@using P2PWeb.Common;
@using P2PWeb;

<link href="~/Content/themes/base/jquery.ui.all.css" rel="stylesheet" />
<link href="@Url.Content("~/Content/borrow.css?ver=0.2")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/Account.css?ver=0.2")" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.10.4.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/app/InterestRate.js")"></script>

<div class="main ">
    <div class="main_top"><span class="main_top_right"></span></div>
        <div class="ouheeMain_box">
          <div class="loan_box">
            <h2 class="content_title ml_neg_75 png">绑定代理商</h2>
          </div>
          <table>
              <tr>
                  <td>
                      <table class="AccountInfoTable">
                          <tr>
                            <th class="left_td">用户名：</th>
                            <th class="left_td">手&nbsp;&nbsp;机：</th>
                            <th class="left_td">E-mail：</th>
                               
                          </tr>
                          <tr>
                             <td class="left_td">@(Model.Name==null?"未填写":Model.Name)</td>
                             <td class="left_td">@(Model.Mobile==null?"未填写":Model.Mobile)</td>
                              <td class="left_td">@(Model.Email==null?"未填写":Model.Email)</td>
                          </tr>
                    </table>
                  </td>
                  <td>
                      <table class="AccountInfoTable" style="margin-left:50px;">
                          <tr>
                            <th class="left_td">代理商编号</th>
                            <th class="left_td">代理商名称</th>
                            <th class="left_td">分润比例</th>
                            <th class="left_td">代理商网址</th>
                            <th class="left_td">操作</th>
                         </tr>
                          @foreach (var item in ViewData["AgentList"] as List<P2PWeb.Models.Agent>)
                          {
                              <tr>
                                  <td class="left_td">@item.ID</td>
                                  <td class="left_td">@item.Name</td>
                                  <td class="left_td">@item.Ratio</td>
                                  <td class="left_td">@item.Url</td>
                                  <td><a href="/Agent/AccountAgentID?Account_Id=@Model.ID&AgentId=@item.ID">选择</a></td>
                              </tr>
                          }
                      </table>
                  </td>
              </tr>
          </table>
    </div>
</div>
